import requests
import re

headers={
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0'}
#
# url=r'https://www.baidu.com/'
# resp=requests.get(url,headers=headers)
# print(resp.text)

url=r'http://apis.juhe.cn/mobile/get'
headers = {'Content-Type':'application/x-www-form-urlencoded'}
data= {'phone':'19988886666','key':'9c73d3eb14015e3b5901baa19720f984'}
resp=requests.get(url,params=data,headers=headers)
resp.encoding = 'utf-8'
patt = r'<title>(.*?)</title>'
title = re.findall(patt, resp.text)
print(title)